// 用户相关
const USER_TOKEN = 'userToken';
const USER_INFO = 'userInfo';

// 理赔相关
const TS_FORM = 'tsForm';
const ADDRESS_OBJ = 'addressObj';


//地图相关
//腾讯云 位置地址
const TX_CALLBACK_URL = "https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl=http://www.digilife.work/meet/meetMain&key=LUXBZ-T2FWJ-Z77FH-KNNWX-BAVH6-ATBE2&referer=kk";
//本地 位置地址
// const TX_CALLBACK_URL = "https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl=http://ant-qywx.com:8800/complaint&key=LUXBZ-T2FWJ-Z77FH-KNNWX-BAVH6-ATBE2&referer=kk";
LocalStorage = {
    get: function (key) {
        let v = localStorage.getItem(key);
        if (v && typeof(v) !== "undefined" && v !== "undefined") {
            return JSON.parse(v);
        }
    },
    set: function (key, data) {
        localStorage.setItem(key, JSON.stringify(data));
    },
    remove: function (key) {
        localStorage.removeItem(key);
    },
    clearAll: function () {
        localStorage.clear();
    }
};
